package ptaTest2;

import java.util.*;
import java.math.BigDecimal;
public class Tese25 {

	public static void main(String[] args) {
		String a,b;
		@SuppressWarnings("resource")
		Scanner in = new Scanner(System.in);
		while (in.hasNextDouble())
		{
			a=in.next();
		    b=in.next();
		    BigDecimal b1 = new BigDecimal(a);
            BigDecimal b2 = new BigDecimal(b);
            BigDecimal c = b1.add(b2);
            BigDecimal d = b1.multiply(b2);
		    System.out.println(c);
		    System.out.println(d);	
		}
	}
}
